<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>{$goods.goods_name}-商品详情</title>
		<link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/initialize.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/ipad.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/iPhone.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/pc.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/swiper.css" />

        <script type="text/javascript" src="__STATIC__/yt_js/jquery-1.9.0.min.js"></script>
        <script type="text/javascript" src="__STATIC__/yt_js/swiper.min.js"></script>
        <script type="text/javascript" src="__STATIC__/yt_js/jquery.nav.js"></script>
        <script type="text/javascript" src="__STATIC__/yt_js/mynnn.js"></script>
        <script type="text/javascript" src="__STATIC__/yt_js/fangdajing.js"></script>
        <script src="__PUBLIC__/js/layer/layer-min.js"></script>
        <script src="__PUBLIC__/js/global.js"></script>
        <script src="__PUBLIC__/js/pc_common.js"></script>
        <script type="text/javascript" src="__STATIC__/yt_js/common.js"></script>

	</head>
	<body>
	<include file="public/new_header" w="w1224"/>
		<!--tab2结束-->
		<div class="cpxqdiv1 juzhong clearfix">
			<!--放大镜-->
			<div class="cpxqfdj fl" style="width:400px;">
				<div id="showbox">
                    <foreach name="goods_images_list" item="v" key="k" >
					    <img src="{$v|get_sub_images=$v[goods_id],300,424}" width="300" height="424" />
                    </foreach>
				</div>
				<!--展示图片盒子-->
				<div id="showsum"></div>
				<!--展示图片里边-->
				<p class="showpage">
					<a href="javascript:void(0);" id="showlast">< </a>
                    <a href="javascript:void(0);" id="shownext"> > </a>
				</p>
			</div>

			<!--文字-->
			<div class="cpxqwenzi fl">
				<h3>{$goods.goods_name}</h3>
				<p>价格 ： <span>￥{$goods.shop_price}</span></p>
                <empty name="goods['flash_sale']">
                    <foreach name="filter_spec" item="v" key="k">
                        <div class="cpxqwenzi_yanse">
                            <i>{$k}：</i>
                            <foreach name="v" item="v2" key="k2" >
                                <if condition="$v2[src] neq ''">
                                    <div class="cpxqwenzi_yanse1 fl"><img src="{$v2[src]}" style="width: 40px;height: 40px;"/></div>
                                <else/>
                                    <div class="cpxqchima_s fl" style="width: auto; min-width: 30px">{$v2[item]}</div>
                                </if>
                            </foreach>
                        </div>
                    </foreach>
                </empty>

				<div class="cpxqwenzi_shuliang clearfix">
					<i>数量：</i>
					<div class="cpxqwenzi_shuliang1 fl">-</div>
					<div class="cpxqwenzi_shuliang2 fl">1</div>
					<div class="cpxqwenzi_shuliang3 fl">+</div>
				</div>
				<div class="cpxqwenzi_ljgm fl">
					<a href="javascript:void(0)">立即购买</a>
				</div>
				<div class="cpxqwenzi_jrgwc fl">
					<a onclick="AjaxAddCart({$goods.goods_id},1,0);">加入购物车</a>
				</div>
				<img src="__STATIC__/yt_images/fuwuchengnuo.png" />

			</div>

			<div class="spxq1 clearfix">
				<div class="spxq1_1">
					商品详情
				</div>

				<div class="spxq1_line"></div>

				<div class="spxq1_2 fl">
                    {$goods.goods_content|htmlspecialchars_decode}
				</div>

				<div class="xgtj fr"  >
					<h4>相关推荐</h4>
                    <tpshop sql="select goods_id,goods_name,shop_price from __PREFIX__goods where is_recommend=1 and is_on_sale = 1 order by goods_id desc limit 5" item="vo" key="k">
                        <div class="shangpin">
                            <a href="{:U('Home/Goods/goodsInfo',array('id'=>$vo[goods_id]))}"><img src="{$vo.goods_id|goods_thum_images=220,220}" alt="" /></a>
                            <div>
                                <p>{$vo.goods_name|getSubstr=0,16}</p>
                                <p>￥{$vo.shop_price}</p>
                                <div class="jiarugouwuche fl">
                                    <a href="javascript:void(0)" onclick="AjaxAddCart({$goods.goods_id},1,0);">加入购物车</a>
                                </div>
                            </div>
                        </div>
                    </tpshop>
				</div>
			</div>
		</div>
		<!--底部-->
	<include file="public/new_footer" w="w1224"/>
	</body>

	<script>
		$(document).ready(function () {
			var swiper = new Swiper('.swiper-container', {
				pagination: '.swiper-pagination',
				autoplay: 3000,
				paginationClickable: true
			});
		});
	</script>
</html>